﻿<UserControl x:Class="RabbitMQ示例.ConsistentHashExchange示例"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             xmlns:local="clr-namespace:RabbitMQ示例"
             mc:Ignorable="d" 
             d:DesignHeight="300" d:DesignWidth="300">
    <Grid Height="300" VerticalAlignment="Bottom">
        <TextBlock Text="channel.exchangeDeclare(EXCHANGE_NAME,&quot;x-consistent-hash&quot;,true); 
                  &#13; channel.basicPublish(EXCHANGE_NAME,message,null, message.getBytes()); " Margin="0,0,0,260"></TextBlock>
        <Button x:Name="btn_Init" Content="步骤1初始化" HorizontalAlignment="Left" Margin="54,70,0,0" VerticalAlignment="Top" Width="170" Click="btn_Init_Click"/>
        <Button x:Name="btn_Send" Content="步骤2循环发送数据"  HorizontalAlignment="Left" Margin="54,114,0,0" VerticalAlignment="Top" Width="170" Click="btn_Send_Click"/>
        <Button x:Name="btn_AddReceive" Content="步骤3增加一个接收器" HorizontalAlignment="Left" Margin="54,171,0,0" VerticalAlignment="Top" Width="170" Click="btn_AddReceive_Click"/>
        <Button x:Name="button" Content="减少队列数据重新分配" HorizontalAlignment="Left" Margin="54,219,0,0" VerticalAlignment="Top" Width="170" Click="button_Click"/>

    </Grid>
</UserControl>
